<!DOCTYPE html>
<html lang="en">
<head>
<title>@yield("title","后台首页")</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="{{url('/css/admin/bootstrap.min.css')}}" />
<link rel="stylesheet" href="{{url('/css/admin/bootstrap-responsive.min.css')}}" />
<link rel="stylesheet" href="{{url('/css/admin/fullcalendar.css')}}" />
<link rel="stylesheet" href="{{url('/css/admin/matrix-style.css')}}" />
<link rel="stylesheet" href="{{url('/css/admin/matrix-media.css')}}" />
<link href="{{url('/css/font-awesome/css/font-awesome.css')}}" rel="stylesheet" />

@yield('my-css')
<!-- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'> -->
</head>
<body>

<!--Header-part-->
<div id="header">
  <h1><a href="{{url('admin.dashboard')}}">Matrix Admin</a></h1>
</div>
<!--close-Header-part--> 

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
  <ul class="nav">
    <li  class="dropdown" id="profile-messages" ><a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><i class="icon icon-user"></i>  <span class="text">欢迎XX用户</span></a>
    </li>
    <li class="">
      <a title="" href="{{'/admin/loginout'}}">
        <i class="icon icon-share-alt"></i>
        <span class="text">退出登录</span>
      </a>
    </li>
  </ul>
</div>

<!--start-top-serch-->
<div id="search">
  <input type="text" placeholder="搜索.."/>
  <button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
</div>
<!--close-top-serch--> 

<!--sidebar-menu-->

<div id="sidebar"><a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard2</a>
  <ul>
    <li><a href="{{url('/admin/index1')}}"><i class="icon icon-home"></i> <span>用户列表</span></a> </li>
    <li> <a href="{{url('/admin/news')}}"><i class="icon icon-signal"></i> <span>新闻列表</span></a> </li>
    <li> <a href="{{url('/admin/comment/index')}}"><i class="icon icon-inbox"></i> <span>评论管理</span></a> </li>
    <!-- <li><a href="tables.html"><i class="icon icon-th"></i> <span>Tables</span></a></li> -->
    <li><a href="{{url('/admin/picture')}}"><i class="icon icon-fullscreen"></i> <span>图片管理</span></a></li>
    <li class="submenu"> <a href="#"><i class="icon icon-th-list"></i> <span>权限管理</span> <span class="label label-important">3</span></a>
      <ul>
        <li><a href="form-common.html">管理员管理</a></li>
        <li><a href="form-validation.html">角色管理</a></li>
        <li><a href="form-wizard.html">权限管理</a></li>
      </ul>
    </li>
    <!-- <li><a href="buttons.html"><i class="icon icon-tint"></i> <span>Buttons &amp; icons</span></a></li> -->
    <li><a href="interface.html"><i class="icon icon-pencil"></i> <span>添加标识</span></a></li>
    <!-- <li class="submenu active"> <a href="#"><i class="icon icon-file"></i> <span>Addons</span> <span class="label label-important">5</span></a>
      <ul>
        <li><a href="index2.html">Dashboard2</a></li>
        <li><a href="gallery.html">Gallery</a></li>
        <li><a href="calendar.html">Calendar</a></li>
        <li><a href="invoice.html">Invoice</a></li>
        <li><a href="chat.html">Chat option</a></li>
      </ul>
    </li> -->
  </ul>
</div>
@yield("content")


<!--Footer-part-->
<div class="row-fluid">
  <div id="footer" class="span12"> 2013 &copy; Matrix Admin. Brought to you by <a href="http://themedesigner.in/">Themedesigner.in</a> </div>
</div>
<!--end-Footer-part-->
<script src="{{url('/js/excanvas.min.js')}}"></script> 
<script src="{{url('/js/jquery.min.js')}}"></script> 
<script src="{{url('/js/jquery.ui.custom.js')}}"></script> 
<script src="{{url('/js/bootstrap.min.js')}}"></script> 
<script src="{{url('/js/jquery.flot.min.js')}}"></script> 
<script src="{{url('/js/jquery.flot.resize.min.js')}}"></script> 
<script src="{{url('/js/jquery.peity.min.js')}}"></script> 
<script src="{{url('/js/matrix.js')}}"></script> 
<script src="{{url('/js/fullcalendar.min.js')}}"></script> 
<script src="{{url('/js/matrix.calendar.js')}}"></script> 
<script src="{{url('/js/matrix.chat.js')}}"></script> 
<script src="{{url('/js/jquery.validate.js')}}"></script> 
<script src="{{url('/js/matrix.form_validation.js')}}"></script> 
<script src="{{url('/js/jquery.wizard.js')}}"></script> 
<script src="{{url('/js/jquery.uniform.js')}}"></script> 
<script src="{{url('/js/select2.min.js')}}"></script> 
<script src="{{url('/js/matrix.popover.js')}}"></script> 
<script src="{{url('/js/jquery.dataTables.min.js')}}"></script> 
<script src="{{url('/js/matrix.tables.js')}}"></script> 
<script src="{{url('/js/matrix.interface.js')}}"></script> 

@yield('my-js')
<script type="text/javascript">
  // This function is called from the pop-up menus to transfer to
  // a different page. Ignore if the value returned is a null string:
  function goPage (newURL) {

      // if url is empty, skip the menu dividers and reset the menu selection to default
      if (newURL != "") {
      
          // if url is "-", it is this page -- reset the menu:
          if (newURL == "-" ) {
              resetMenu();            
          } 
          // else, send page to designated URL            
          else {  
            document.location.href = newURL;
          }
      }
  }

// resets the menu selection upon entry to this page:
function resetMenu() {
   document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
